<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<% 
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>大连开发区健身中心</title>
		<link type="text/css" rel="stylesheet" href="<%=path %>/admin/styles/default.css" />
		<script type="text/javascript" src="<%=path %>/res/js/jquery.js"></script>
		<script type="text/javascript" src="<%=path %>/res/js/common.js"></script>
		<script type="text/javascript" src="<%=path %>/admin/pages/community/js/community.js"></script>
	</head>
	<body>
		<form name="form1" method="post" action="" onsubmit="">
		<input type="hidden" id="message" value="${message}"/>
		<input type="hidden" id="webPath" value="<%=path %>"/>
		<input type="hidden" id="communityId" name="communityId" value=""/>
		<table id="table-data-outter">
			<tr>
				<td>
					<table id="table-view" cellpadding="0" cellspacing="1">
						<tr class="row-header">
							<td width="5%">序号</td>
							<td>社区名称</td>
							<td width="30%">社区负责人</td>
							<td>社区电话</td>
							<td width="20%">操作</td>
						</tr>
						<s:iterator value="resultList" status="index">
							<s:if test='#index.odd == true'>
								<s:set name="var_class" value="'row-odd'" />
							</s:if>
							<s:else>
								<s:set name="var_class" value="'row-even'" />
							</s:else>
							<tr class="<s:property value='var_class' />"
						 	onmouseover="this.className='row-over'" onmouseout="this.className='<s:property value='var_class' />'">
								<td align="center"><s:property value="#index.count"/> </td>
								<td align="left"><s:property value="communityName"/></td>
								<td align="left"><s:property value="communityOwner"/></td>
								<td align="left"><s:property value="communityTel"/></td>
								<td align="center">
								<a href="javascript:void(0);" onclick="initUpdate(<s:property value="communityId"/>)">修改</a>
								||
								<a href="javascript:void(0);" onclick="del(<s:property value="communityId"/>)">删除</a>
								</td>
							</tr>
						</s:iterator>
					</table>
				</td>
			</tr>
		</table>
		</form>
	</body>
</html>